package ltd.hanamaki.review.dataStruct;

import java.util.*;

public class ListAndMapTest {

    public static void main(String[] args) {

        HashMap<Integer, List<String>> map = new HashMap<>();

        /* 准备 value */
        List<String> list = new ArrayList<>();
        list.add("上海");
        list.add("天津");
        list.add("北京");
        list.add("广州");

        map.put(1, list);
        map.put(2, list);
        map.put(3, list);
        map.put(4, list);

        Collection<List<String>> values = map.values();
        for (List<String> value : values) {
            for (String s : value) {
                System.out.println(s);
            }
        }


    }
}
